package com.ibm.www;

public class BBVA_RENIEC_WSDLPortTypeProxy implements com.ibm.www.BBVA_RENIEC_WSDLPortType {
  private boolean _useJNDI = true;
  private String _endpoint = null;
  private com.ibm.www.BBVA_RENIEC_WSDLPortType __bBVA_RENIEC_WSDLPortType = null;
  
  public BBVA_RENIEC_WSDLPortTypeProxy() {
    _initBBVA_RENIEC_WSDLPortTypeProxy();
  }
  
  private void _initBBVA_RENIEC_WSDLPortTypeProxy() {
  
    if (_useJNDI) {
      try {
        javax.naming.InitialContext ctx = new javax.naming.InitialContext();
        __bBVA_RENIEC_WSDLPortType = ((com.ibm.www.BBVA_RENIEC_INTERFACE_Service)ctx.lookup("java:comp/env/service/BBVA_RENIEC_INTERFACE_Service")).getSOAP_HTTP_Port();
      }
      catch (javax.naming.NamingException namingException) {}
      catch (javax.xml.rpc.ServiceException serviceException) {}
    }
    if (__bBVA_RENIEC_WSDLPortType == null) {
      try {
        __bBVA_RENIEC_WSDLPortType = (new com.ibm.www.BBVA_RENIEC_INTERFACE_ServiceLocator()).getSOAP_HTTP_Port();
        
      }
      catch (javax.xml.rpc.ServiceException serviceException) {}
    }
    if (__bBVA_RENIEC_WSDLPortType != null) {
      if (_endpoint != null)
        ((javax.xml.rpc.Stub)__bBVA_RENIEC_WSDLPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
      else
        _endpoint = (String)((javax.xml.rpc.Stub)__bBVA_RENIEC_WSDLPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
    }
    
  }
  
  
  public void useJNDI(boolean useJNDI) {
    _useJNDI = useJNDI;
    __bBVA_RENIEC_WSDLPortType = null;
    
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (__bBVA_RENIEC_WSDLPortType != null)
      ((javax.xml.rpc.Stub)__bBVA_RENIEC_WSDLPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.ibm.www.BBVA_RENIEC_WSDLPortType getBBVA_RENIEC_WSDLPortType() {
    if (__bBVA_RENIEC_WSDLPortType == null)
      _initBBVA_RENIEC_WSDLPortTypeProxy();
    return __bBVA_RENIEC_WSDLPortType;
  }
  
  public com.ibm.www.RENIEC_1_REPLY_Type operation1(com.ibm.www.RENIEC_1_REQUEST_Type RENIEC_1_REQUEST) throws java.rmi.RemoteException, com.ibm.www.RENIEC_1_REPLY_Type{
    if (__bBVA_RENIEC_WSDLPortType == null)
      _initBBVA_RENIEC_WSDLPortTypeProxy();
    return __bBVA_RENIEC_WSDLPortType.operation1(RENIEC_1_REQUEST);
  }
  
  public com.ibm.www.RENIEC_7_REPLY_Type operation7(com.ibm.www.RENIEC_7_REQUEST_Type RENIEC_7_REQUEST) throws java.rmi.RemoteException, com.ibm.www.RENIEC_7_REPLY_Type{
    if (__bBVA_RENIEC_WSDLPortType == null)
      _initBBVA_RENIEC_WSDLPortTypeProxy();
    return __bBVA_RENIEC_WSDLPortType.operation7(RENIEC_7_REQUEST);
  }
  
  public com.ibm.www.RENIEC_2_REPLY_Type operation2(com.ibm.www.RENIEC_2_REQUEST_Type RENIEC_2_REQUEST) throws java.rmi.RemoteException, com.ibm.www.RENIEC_2_REPLY_Type{
    if (__bBVA_RENIEC_WSDLPortType == null)
      _initBBVA_RENIEC_WSDLPortTypeProxy();
    return __bBVA_RENIEC_WSDLPortType.operation2(RENIEC_2_REQUEST);
  }
  
  
}